import axios from '@/libs/request/axios'

// 多条件获取app常见问题列表
export const getAppCommonProblem = (params) => {
    return axios.request({
        url: '/apply/appManagement/getAppCommonProblem',
        data: params,
        method: 'post'
    })
}

// 保存app常见问题
export const saveProblem = (params) => {
    return axios.request({
        url: '/apply/appManagement/saveCommonProblem',
        data: params,
        method: 'post'
    })
}

// 删除常见问题
export const delByIds = (ids, params) => {
    return axios.request({
        url:`/apply/appManagement/delByIds/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 多条件获取app意见反馈列表
export const getAppFeedback = (params) => {
    return axios.request({
        url: '/apply/appManagement/getAppFeedback',
        data: params,
        method: 'post'
    })
}

// 删除意见反馈
export const delFeedbackByIds = (ids, params) => {
    return axios.request({
        url:`/apply/appManagement/delFeedbackByIds/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 保存app意见反馈
export const saveFeedback = (params) => {
    return axios.request({
        url: '/apply/appManagement/saveFeedback',
        data: params,
        method: 'post'
    })
}

// 多条件获取app图片管理列表
export const getPictureManagement = (params) => {
    return axios.request({
        url: '/apply/appManagement/getPictureManagement',
        data: params,
        method: 'post'
    })
}

// 删除图片管理
export const delPictureManagement = (ids, params) => {
    return axios.request({
        url:`/apply/appManagement/delPictureManagement/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 保存app图片管理列表
export const savePictureManagement = (params) => {
    return axios.request({
        url: '/apply/appManagement/savePictureManagement',
        data: params,
        method: 'post'
    })
}

// 多条件获取app版本管理列表
export const getVersionInfo = (params) => {
    return axios.request({
        url: '/apply/appManagement/getVersionInfo',
        data: params,
        method: 'post'
    })
}

// 删除版本管理
export const delVersionInfo = (ids, params) => {
    return axios.request({
        url:`/apply/appManagement/delVersionInfo/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 保存app版本管理列表
export const saveVersionInfo = (params) => {
    return axios.request({
        url: '/apply/appManagement/saveVersionInfo',
        data: params,
        method: 'post'
    })
}

// 多条件获取app公告列表
export const getAnnouncementInfo = (params) => {
    return axios.request({
        url: '/apply/appManagement/getAnnouncementInfo',
        data: params,
        method: 'post'
    })
}

// 删除公告
export const delAnnouncementInfo = (ids, params) => {
    return axios.request({
        url:`/apply/appManagement/delAnnouncementInfo/${ids}`,
        params:params,
        method: 'delete'
    })
}

// 保存app公告
export const saveAnnouncementInfo = (params) => {
    return axios.request({
        url: '/apply/appManagement/saveAnnouncementInfo',
        data: params,
        method: 'post'
    })
}
